// _Ticker.h: interface for the _Ticker class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX__TICKER_H__8F1BEB48_B064_4375_BE77_2C970DFAD834__INCLUDED_)
#define AFX__TICKER_H__8F1BEB48_B064_4375_BE77_2C970DFAD834__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ticker.h"

class QString;
class QSize;
class QPaintEvent;
class QHideEvent;
class QTimerEvent;
class QShowEvent;

class _Ticker : public Ticker  
{
public:
	_Ticker(QWidget *parent = 0);
	virtual ~_Ticker();

	void setText (const QString &newText);
	QString text () const { return myText; };
	QSize sizeHint () const;

protected:
	void paintEvent (QPaintEvent *event);
	void hideEvent (QHideEvent *event);
	void timerEvent (QTimerEvent *event);
	void showEvent (QShowEvent *event);

private:
	QString myText;
	int myTimerId;
	int offset;
};

#endif // !defined(AFX__TICKER_H__8F1BEB48_B064_4375_BE77_2C970DFAD834__INCLUDED_)
